$(function(){
	webName=webName+"/Servlet?type=";
})

function login(){
	var name=$("#uname").val();
	var pwd=$("#upwd").val();
	$.post(webName+"login",{"name":name,"pwd":pwd},function(data){
		if(data=="succeed")
			location.href="index.html";
		else
			alert("用户名或密码错误!");
	});
}





















